package com.zxh.zhenxihuan.mapper;

import com.zxh.zhenxihuan.entity.ShopCar;
import com.zxh.zhenxihuan.entity.z.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author:geQiang
 * @version:1.0
 * @date:2019/7/31
 * @description:com.zxh.zhenxihuan.mapper
 */
@Mapper
public interface ShopCarMapper {
    /**
     * 获得总数
     */
    @Select(" select count(1) from shopcar")
    Integer getSum();
    /**
     * 查询列表
     */
    List<ShopCar> getAllShopCar(@Param("start") Integer start, @Param("end") Integer end);


    long delShopCar(@Param("id") long id);
}
